package com.yupi.oj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yupi.oj.model.dto.questionSubmit.QuestionSubmitQueryRequest;
import com.yupi.oj.model.entity.QuestionSubmit;
import com.yupi.oj.model.entity.QuestionSubmitSimple;
import com.yupi.oj.model.vo.QuestionSubmitDataVO;

import java.util.List;

/**
* @author 兰飞宇
* @description 针对表【post_submit(题目提交)】的数据库操作Mapper
* @createDate 2024-11-08 17:07:26
* @Entity generator.domain.PostSubmit
*/
public interface QuestionSubmitMapper extends BaseMapper<QuestionSubmit> {

    List<QuestionSubmitDataVO> selectSubmitData(Long userId);

    List<QuestionSubmitSimple> listQuestionSubmitSimpleVO(QuestionSubmitQueryRequest questionSubmitQueryRequest, int currentSize);

    long selectTotalCount(QuestionSubmitQueryRequest questionSubmitQueryRequest);
}




